import { Injectable } from '@angular/core';
import { AppConsts } from '@shared/AppConsts';
import { CommonLookupServiceProxy } from '@shared/service-proxies/service-proxies';


@Injectable()
export class ContentPermissionService {

    constructor(private _commonLookupServiceProxy:CommonLookupServiceProxy){
        
    }

    getContentPermissionData(module:string,kind:number,func:{(param:{[key: string]: boolean;}):void}){
        this._commonLookupServiceProxy.getPermissionDatas(module,kind).subscribe(result=>{
            func && func(result);
        })
    }

}
